Optimal. Leaf size=75 \[ \frac{1}{2} e^{i a} b^2 x^m (-i b x)^{-m} \text{Gamma}(m-2,-i b x)+\frac{1}{2} e^{-i a} b^2 x^m (i b x)^{-m} \text{Gamma}(m-2,i b x) \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.074068, antiderivative size = 75, normalized size of antiderivative = 1., number of steps used = 3, number of rules used = 2, integrand size = 12, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.167, Rules used = {3307, 2181} \[ \frac{1}{2} e^{i a} b^2 x^m (-i b x)^{-m} \text{Gamma}(m-2,-i b x)+\frac{1}{2} e^{-i a} b^2 x^m (i b x)^{-m} \text{Gamma}(m-2,i b x) \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3307
Rule 2181
Rubi steps
\begin{align*} \int x^{-3+m} \cos (a+b x) \, dx &=\frac{1}{2} \int e^{-i (a+b x)} x^{-3+m} \, dx+\frac{1}{2} \int e^{i (a+b x)} x^{-3+m} \, dx\\ &=\frac{1}{2} b^2 e^{i a} x^m (-i b x)^{-m} \Gamma (-2+m,-i b x)+\frac{1}{2} b^2 e^{-i a} x^m (i b x)^{-m} \Gamma (-2+m,i b x)\\ \end{align*}
Mathematica [A] time = 0.0151217, size = 75, normalized size = 1. \[ \frac{1}{2} e^{i a} b^2 x^m (-i b x)^{-m} \text{Gamma}(m-2,-i b x)+\frac{1}{2} e^{-i a} b^2 x^m (i b x)^{-m} \text{Gamma}(m-2,i b x) \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [C] time = 0.086, size = 600, normalized size = 8. \begin{align*} \text{result too large to display} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int x^{m - 3} \cos \left (b x + a\right )\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.65332, size = 153, normalized size = 2.04 \begin{align*} \frac{i \, e^{\left (-{\left (m - 3\right )} \log \left (i \, b\right ) - i \, a\right )} \Gamma \left (m - 2, i \, b x\right ) - i \, e^{\left (-{\left (m - 3\right )} \log \left (-i \, b\right ) + i \, a\right )} \Gamma \left (m - 2, -i \, b x\right )}{2 \, b} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int x^{m - 3} \cos \left (b x + a\right )\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]